<template>
	<view>
		<bg-video></bg-video>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				show: false
			}
		},
		onLoad: function(option) {
			let self = this;
			if (option.state) {
				let paramArr = option.state.split("__");
				let storeId = paramArr[0];
				let to = paramArr[1];
				
				this.http.get({
					url: "/client/login/wx-code",
					param: {
						code: option.code,
						storeId
					}
				}).then(function(res) {
					self.common.setAttribute("autor", res);
					uni.redirectTo({
						url: "../pages/"+to
					});
				});
			}
			
		},
		methods: {}
	}
</script>

<style scoped>
	video {
		/* transform: scale(1, 1); */
		width: 100vw;
		height: 100vh;
	}
</style>
